/*
 * This file is part of CGVis.
 *
 * Copyright 2008 Ilya Boyandin, Erik Koerner
 * 
 * CGVis is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * CGVis is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with CGVis.  If not, see <http://www.gnu.org/licenses/>.
 */
package at.fhjoanneum.cgvis.data.provider;

import java.util.HashMap;

import org.xmlpull.v1.XmlPullParser;

/**
 * @author Erik Koerner
 */
public abstract class AbstractDataProvider {

    protected IPointSetter pointSetter;
    protected HashMap<String, String> aliases;

    public AbstractDataProvider(IPointSetter ps) {
        pointSetter = ps;
        aliases = new HashMap<String, String>();
    }

    public abstract void parseConfiguration(XmlPullParser rdr) throws Exception;

    public abstract String[] getColumnHeaders();

    public abstract String[] getRowLabels();

    public abstract void retrievePoints() throws Exception;
}
